package com.ddwl.gate.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.gate.mapper.DingTalkRecordMapper;
import com.ddwl.gate.model.DingTalkRecord;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author wenbin
 */
@Repository
public class DingTalkRecordDao extends TkDao<DingTalkRecordMapper, DingTalkRecord> {

    @Resource
    private DingTalkRecordMapper dingTalkRecordMapper;

    public List<DingTalkRecord> getAll() {
        Example example = new Example(DingTalkRecord.class);
        return dingTalkRecordMapper.selectByExample(example);
    }

    public void changeId(Map<String, String> map) {
        dingTalkRecordMapper.changeId(map);
    }
}
